﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Common.DataAnnotations
{
    /// <summary>
    /// 整数型数组模式
    /// </summary>
    public class IntArrayAttribute : RegularExpressionAttribute
    {
        const string IntArrayPattern = @"^\d+(,\d+)*$";
        /// <summary>
        /// 整数型数组模式
        /// </summary>
        public IntArrayAttribute() : base(IntArrayPattern)
        {
        }
    }
}
